<!doctype html>
<?php
function isOne($value)
{
	if($value == '1')
		return '(v)';
	else
		return '( )';
}
function isTwo($value)
{
	if($value == '2')
		return '(v)';
	else
		return '( )';
}
?>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title></title>

	<style type="text/css">
	div.header{
		text-align: center;
	}
	body,.importir table td{
		font-family: Arial;
		font-size: 12px;
	}
	table td{
		font-size: 12px !important;
	}
	table.rk {
		border: solid 2px #000;
		
	}
	td.rk1,td.rk2{
		width: 400px;
		font-weight: bold;
	}
	td.vat{padding-left: 183px}
	td.total{padding-left: 205px;font-weight: bold;}
	h3.h-title{
		color: blue;
	}
	div.content{
		padding: 1em;
	}
	div.importir{
		margin-top: 1em;
	}
	p.footer-text{
		background: #000;
		color: #fff;
		padding: 2px;
	}
	.logo{
		display: block;
	}
	td.title{
		text-decoration: underline;
		font-weight: bold;

	}
	div.subject{
		font-weight: bold;
	}
	</style>
</head>
<body>
<div class="header">
	<table align="center">
		<tr><td align="center"><img src="<?php echo FCPATH . 'assets/pdf/logo.png'?>" class="logo" width="60"/></td></tr>
		<tr><td class="title" align="center"><h3>REQUEST FOR QUOTATION</h3></td></tr>
		<tr><td class="no_srt" align="center">No.&nbsp;<?php echo $ql->roq_no?></td></tr>
	</table>
</div>
<div class="content">
	<div class="importir">
		<table width="100%">
		<tr>
			<td valign="top">To</td><td valign="top">:&nbsp;<?php echo $ql->roq_to;?></td><td valign="top">&nbsp;</td><td valign="top">FROM</td><td valign="top">:&nbsp;<?php echo $ql->roq_from?></td>
		</tr>
		<tr>
			<td valign="top">Attn</td><td valign="top">:&nbsp;<?php echo $ql->to_attn;?></td><td valign="top">&nbsp;</td><td valign="top">Attn</td><td valign="top">:&nbsp;<?php echo $ql->from_attn?></td>
		</tr>
		<tr>
			<td valign="top">Address</td><td valign="top">:&nbsp;<?php echo $ql->to_address;?></td><td valign="top">&nbsp;</td><td valign="top">Address</td><td valign="top">:&nbsp;<?php echo $ql->from_address?></td>
		</tr>
		<tr><td colspan="5">&nbsp;</td></tr>
		<tr>
			<td valign="top">Tel No.</td><td valign="top">:&nbsp;<?php echo $ql->to_phone;?></td><td valign="top">&nbsp;</td><td valign="top">Tel No.</td><td valign="top">:&nbsp;<?php echo $ql->from_phone?></td>
		</tr>
		<tr>
			<td valign="top">Fax No.</td><td valign="top">:&nbsp;<?php echo $ql->to_fax;?></td><td valign="top">&nbsp;</td><td valign="top">Fax No.</td><td valign="top">:&nbsp;<?php echo $ql->from_fax?></td>
		</tr>
		<tr>
			<td valign="top">Email</td><td valign="top">:&nbsp;<?php echo $ql->to_email;?></td><td valign="top">&nbsp;</td><td valign="top">Email</td><td valign="top">:&nbsp;<?php echo $ql->from_email?></td>
		</tr>
		<tr>
			<td valign="top">&nbsp;</td><td valign="top">&nbsp;</td><td valign="top">&nbsp;</td><td valign="top">Date</td><td valign="top">:&nbsp;<?php echo date('F d, Y',strtotime($ql->roq_date))?></td>
		</tr>
		</table>
	</div>
	<div class="subject">
		Subject : <?php echo $ql->subject?>
	</div>
	<div class="pengantar">
		<p>Dear&nbsp;<?php echo $ql->dear_name;?>, </p><p>We would like to inquiry your best inspection fee for the following conditions :</p>
		<table cellpadding="2" colspacing="2" width="100%">
			<tbody>
				<tr><td valign="top" width="150px">Subject of Inspection</td><td valign="top" width="259px">:&nbsp;<?php echo isOne($ql->subject_oi)?>&nbsp;Second Hand Goods</td><td valign="top"><?php echo isTwo($ql->subject_oi)?>&nbsp;Other</td></tr>
				<tr><td valign="top">Description of Goods</td><td valign="top">:&nbsp;<?php echo isOne($ql->description_og)?>&nbsp;Machine/Heavy Equipment</td><td valign="top"><?php echo isTwo($ql->description_og)?>&nbsp;Vehicle</td></tr>
			</tbody>
		</table>
		<br>
		<table cellpadding="2" colspacing="2" width="100%">
			<tbody>
				<tr><td valign="top" colspan="2"><b>Importer</b></td><td valign="top">&nbsp;</td><td valign="top" colspan="2"><b>Exporter</b></td></tr>
				<tr>
					<td valign="top">Company Name</td><td valign="top">:&nbsp;<?php echo $ql->imp_name;?></td><td valign="top">&nbsp;</td><td valign="top">Exporter</td><td valign="top">:&nbsp;<?php echo $ql->exp_name?></td>
				</tr>
				<tr>
					<td valign="top">Attn</td><td valign="top">:&nbsp;<?php echo $ql->imp_attn;?></td><td valign="top">&nbsp;</td><td valign="top">Attn</td><td valign="top">:&nbsp;<?php echo $ql->exp_attn?></td>
				</tr>
				<tr>
					<td valign="top">Address</td><td valign="top">:&nbsp;<?php echo $ql->imp_address;?></td><td valign="top">&nbsp;</td><td valign="top">Address</td><td valign="top">:&nbsp;<?php echo $ql->exp_address?></td>
				</tr>
				<tr><td colspan="5">&nbsp;</td></tr>
				<tr>
					<td valign="top">Tel No.</td><td valign="top">:&nbsp;<?php echo $ql->imp_tel;?></td><td valign="top">&nbsp;</td><td valign="top">Tel No.</td><td valign="top">:&nbsp;<?php echo $ql->exp_tel?></td>
				</tr>
				<tr>
					<td valign="top">Fax No.</td><td valign="top">:&nbsp;<?php echo $ql->imp_fax;?></td><td valign="top">&nbsp;</td><td valign="top">Fax No.</td><td valign="top">:&nbsp;<?php echo $ql->exp_fax?></td>
				</tr>
				<tr>
					<td valign="top">Email</td><td valign="top">:&nbsp;<?php echo $ql->imp_email;?></td><td valign="top">&nbsp;</td><td valign="top">Email</td><td valign="top">:&nbsp;<?php echo $ql->exp_email?></td>
				</tr>
				<tr><td colspan="5">&nbsp;</td></tr>
				<tr>
					<td valign="top">Place Of Inspection</td><td valign="top">:&nbsp;<?php echo $ql->place_oi;?></td><td valign="top">&nbsp;</td><td colspan="2">&nbsp;</td>
				</tr>
				<tr>
					<td valign="top">Date Of Inspection</td><td valign="top">:&nbsp;<?php echo date('F d, Y',strtotime($ql->date_oi))?></td><td valign="top">&nbsp;</td><td colspan="2">&nbsp;</td>
				</tr>
			</tbody>
		</table>
		<br/>
		<div class="ref">
			<table cellpadding="2" colspacing="2">
			<tbody>
				<tr><td valign="top" colspan="4"><b>References</b></td></tr>
				<tr>
					<td valign="top">1.</td>
					<td valign="top" width="250px">Industrial Business Lisence No.</td>
					<td valign="top">:&nbsp;<?php echo $ql->ref_ibl_no?></td>
				</tr>
				<tr><td valign="top">&nbsp;</td><td colspan="2">(Izin Usaha Industri)</td></tr>
				<tr>
					<td valign="top">2.</td>
					<td valign="top">Import Permit No.</td>
					<td valign="top">:&nbsp;<?php echo $ql->ref_ip_no?></td>
				</tr> 
				<tr><td valign="top">&nbsp;</td><td colspan="2">(Surat Persetujuan Import)</td></tr>
				<tr>
					<td valign="top">3.</td>
					<td valign="top">Importer Identification No.</td>
					<td valign="top">:&nbsp;<?php echo $ql->ref_id_no?></td>
				</tr>
				<tr><td valign="top">&nbsp;</td><td colspan="2">(Angka Pengenal Importer)</td></tr>
				<tr>
					<td valign="top">4.</td>
					<td valign="top">NPWP</td>
					<td valign="top">:&nbsp;<?php echo $ql->ref_npwp?></td>
				</tr>
				<tr>
					<td valign="top">5.</td>
					<td valign="top">Invoice No.</td>
					<td valign="top">:&nbsp;<?php echo $ql->ref_inv_no?></td>
				</tr>
				<tr>
					<td valign="top">6.</td>
					<td valign="top">Declaration Letter for Year of Manufacture</td>
					<td valign="top">:&nbsp;<?php echo $ql->ref_dl_year?></td>
				</tr>
				<tr>
					<td valign="top">7.</td>
					<td valign="top">Trading Business License No.</td>
					<td valign="top">:&nbsp;<?php echo $ql->ref_tbl_no?></td>
				</tr>
				<tr><td valign="top">&nbsp;</td><td colspan="2">(Surat Izin Usaha Perdagangan)</td></tr>
				<tr>
					<td valign="top">8.</td>
					<td valign="top">Company Registration License</td>
					<td valign="top">:&nbsp;<?php echo $ql->ref_crl?></td>
				</tr>
				<tr><td valign="top">&nbsp;</td><td colspan="2">(Tanda Daftar Perusahaan)</td></tr>
				<tr>
					<td valign="top">9.</td>
					<td valign="top">NIK</td>
					<td valign="top">:&nbsp;<?php echo $ql->ref_cin?></td>
				</tr> 
				<tr><td valign="top">&nbsp;</td><td colspan="2">(Tanda Daftar Perusahaan)</td></tr>(Custom Identity Number)
			</tbody>
			</table>
		</div>
		<br>
		<b>Regards,</b>
		<br>
		<br>
		<?php echo $ql->reg_name
		?>
		<br>
		<br>
		<br>
		<br>
		<?php echo $ql->reg_applicant?>
	</div>
</body>
</html>
